<?php
session_start();
session_regenerate_id(true);
session_destroy();
session_write_close();
header('Location: login.php');